<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>裁切图片</title>
    <style type="text/css">
        *{margin: 0; padding: 0;}
        .img-cutview-container{position: relative; margin: 10px auto 46px auto;}
        .img-cutview-container .cut-view{
            position: absolute;display: none; background: rgba(255, 255, 255, .7);
            box-sizing: border-box; border: 1px dotted #fff;
        }
        .img-cutview-container .cut-view .resize-button{
            width: 14px; height: 14px; border-radius: 50%; 
            background: rgba(255, 255, 255, .7);
            position: absolute; right: -7px; bottom: -7px;
        }
        .img-cutview-container .cut-btn{
            height: 30px; line-height: 30px; width: 200px; border-radius: 12px;
            font-size: 14px; border: 1px solid #ccc; text-align: center;
            position: absolute; left: 10px; bottom: -40px; box-sizing: border-box;
            background-color: #f1f1f1; box-shadow:rgba(0, 0, 0, .4) 5px 5px 10px;
            display: none;
        }
    </style>
</head>
<body>
    <input type="file" id="J_FileInput" />
    <div id="J_ImgCutviewContainer" class="img-cutview-container">
        <div class="img-preview J_ImgPreview"></div>
        <div class="J_CutView cut-view">
            <span class="J_ResizeBtn resize-button"></span>
        </div>
        <div class="cut-btn J_CutButton">裁切图片</div>
    </div>
</body>
</html>
<script src="./cutdemo.js"></script>